{*head 部分*}
{include file='public/head.html'}
<div class="wrapper">

    <!-- START HEADER -->
    {*ghead 部分*}
    {include file='public/ghead.html'}
    <!-- END HEADER -->

    <!-- START MAIN -->
    <div id="main">
        <!-- START SIDEBAR -->
        {*导航 部分*}
        {include file='public/nav.html'}         
        <!-- END SIDEBAR -->
        <!-- START PAGE -->
        <div id="page">
            <!-- start page title -->
            <div class="page-title">
                <div class="in">
                    <div class="titlebar">	<h2>用户管理</h2>	<p>用户列表</p></div>

                    <div class="clear"></div>
                </div>
            </div>
            <!-- end page title -->

            <!-- START CONTENT -->
            <div class="content">
                <!-- START TABLE -->
                <div class="simplebox grid740">

                    <div class="titleh">
                        <h3>用户列表</h3>
                    </div>

                    <table id="myTable" class="tablesorter">
                        <thead>
                        <tr>
                            <th>序号</th>
                            <th>#ID</th>
                            <th>用户名</th>
                            <th>注册时间</th>
                            <th>上次登录时间</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        {foreach from=$rows item='row' key='k' name='f1'}
                        <tr>
                            <td>{$smarty.foreach.f1.iteration}</td>
                            <td>{$row['id']}</td>
                            <td>{$row['account']}</td>
                            <td>{$row['regtime']|date_format:'%Y-%m-%d %H-%M'}</td>
                            <td>{$row['logintime']|date_format:'%Y-%m-%d %H-%M'}</td>
                            <td>
                                <a href="{$url}?p=admin&m=Admin&a=del&id={$row['id']}">删除</a>
                                <a href="{$url}?p=admin&m=Admin&a=showUpd&id={$row['id']}">编辑</a>
                              </td>
                        </tr>
                        {/foreach}
                        </tbody>
                    </table>
                    <ul class="pagination">
                        {$strPage}
                    </ul>
                </div>
                <!-- END TABLE -->
            </div>
            <!-- END CONTENT -->
        </div>
        <!-- END PAGE -->
        <div class="clear"></div>
    </div>
    <!-- END MAIN -->

   {*页脚部分*}
{include file='public/footer.html'}
    <!-- END FOOTER -->
